var AirQuality = Class.create();

Object.extend(AirQuality, {
  load: function() {
    if ($('air-quality-container')) {
      new Ajax.Updater(
        'air-quality-container',
        '/misc/air_quality',
        { method: 'get' });
    }
  }
});

Event.observe(window, "load", AirQuality.load);